package com.gaohe.hotal.service.impl;

import java.util.List;
import com.gaohe.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gaohe.hotal.mapper.HotRoomCleanMapper;
import com.gaohe.hotal.domain.HotRoomClean;
import com.gaohe.hotal.service.IHotRoomCleanService;

/**
 * 房间清洁Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
@Service
public class HotRoomCleanServiceImpl implements IHotRoomCleanService 
{
    @Autowired
    private HotRoomCleanMapper hotRoomCleanMapper;

    /**
     * 查询房间清洁
     * 
     * @param cleanId 房间清洁主键
     * @return 房间清洁
     */
    @Override
    public HotRoomClean selectHotRoomCleanByCleanId(Long cleanId)
    {
        return hotRoomCleanMapper.selectHotRoomCleanByCleanId(cleanId);
    }

    /**
     * 查询房间清洁列表
     * 
     * @param hotRoomClean 房间清洁
     * @return 房间清洁
     */
    @Override
    public List<HotRoomClean> selectHotRoomCleanList(HotRoomClean hotRoomClean)
    {
        return hotRoomCleanMapper.selectHotRoomCleanList(hotRoomClean);
    }

    /**
     * 新增房间清洁
     * 
     * @param hotRoomClean 房间清洁
     * @return 结果
     */
    @Override
    public int insertHotRoomClean(HotRoomClean hotRoomClean)
    {
        hotRoomClean.setCreateTime(DateUtils.getNowDate());
        return hotRoomCleanMapper.insertHotRoomClean(hotRoomClean);
    }

    /**
     * 修改房间清洁
     * 
     * @param hotRoomClean 房间清洁
     * @return 结果
     */
    @Override
    public int updateHotRoomClean(HotRoomClean hotRoomClean)
    {
        hotRoomClean.setUpdateTime(DateUtils.getNowDate());
        return hotRoomCleanMapper.updateHotRoomClean(hotRoomClean);
    }

    /**
     * 批量删除房间清洁
     * 
     * @param cleanIds 需要删除的房间清洁主键
     * @return 结果
     */
    @Override
    public int deleteHotRoomCleanByCleanIds(Long[] cleanIds)
    {
        return hotRoomCleanMapper.deleteHotRoomCleanByCleanIds(cleanIds);
    }

    /**
     * 删除房间清洁信息
     * 
     * @param cleanId 房间清洁主键
     * @return 结果
     */
    @Override
    public int deleteHotRoomCleanByCleanId(Long cleanId)
    {
        return hotRoomCleanMapper.deleteHotRoomCleanByCleanId(cleanId);
    }
}
